package com.tarena.lbs.user.pojo.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tarena.lbs.base.protocol.pager.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class UserGroupQuery extends BasePageQuery implements Serializable {
    @Schema(description ="人群名",required = true)
    String groupName;

    @Schema(description ="发布状态",required = true)
    Integer releaseStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @Schema(description ="开始日期",required = true)
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description ="结束日期",required = true)
    private Date endTime;
}
